//
//  CustomThreeTypeTableViewCell.m
//  ChunLaiZhuangClient
//
//  Created by zzs on 16/2/16.
//  Copyright © 2016年 CLZ. All rights reserved.
//

#import "CustomThreeTypeTableViewCell.h"

@implementation CustomThreeTypeTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setBannerModel:(Image_bannerModel *)bannerModel{
    _bannerModel=bannerModel;
    Image_slideModel *slideModel=bannerModel.module_data;
    BannerDetailModel *detailModel=slideModel.slide;
    [self.bannerImageView sd_setImageWithURL:[NSURL URLWithString:detailModel.image] placeholderImage:nil];
     self.bannerImageView.contentMode=UIViewContentModeScaleAspectFill;
    self.bannerImageView.clipsToBounds=YES;
    self.bannerImageView.userInteractionEnabled=YES;
    UITapGestureRecognizer *tap=[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapAction:)];
    [self.bannerImageView addGestureRecognizer:tap];
}
-(void)tapAction:(id)tap{
    Image_slideModel *slideModel=_bannerModel.module_data;
    BannerDetailModel *detailModel=slideModel.slide;
    [TransferManager transferToSomeViewType:detailModel.link_type linkID:detailModel.link_id linkName:detailModel.link_name fromView:self];
 
}
@end
